package edu.ynu.se.xiecheng.achitectureclass.dto;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeviceDataWithGreenhouseDTO {
    // 传感器信息
    private Long id;
    private Date timestamp;
    private Integer dataType;
    private String name;
    private Integer value;
    private String boxId;
    private Integer status;
    private Integer connState;
    private Date connStateTimestamp;
    private Long deviceId;
    
    // 大棚信息
    private Long greenhouseId;
    private String greenhouseName;
    private String greenhouseAddress;
    private Double greenhouseArea;
    private String greenhouseBoxNo;
} 